package cn.com.cfae.iras.doc.analyze.parse.model;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 募集资金用途
 */
public class MJZJYTModel extends BizBaseModel {


    /**
     * 募集资金用途
     */
    static public String MODEL_NAME = "MJZJYT";

    /**
     * 有息债务
     */
    static private String YXZW = "YXZW";


    /**
     * 项目建设
     */
    static private String XMJS = "XMJS";


    /**
     * 运营资金
     */
    static private String YYZJ = "YYZJ";


    static private String MJZJYT="MJZJYT";

    private static Map<String, String> items = new HashMap<>();


    static {
        items.put(YXZW, "有息债务|付息性债务|金融机构借款|银行贷款|存量债务|到期债务|置换借款|银行借款|公司借款|短期融资券|长期借款|置换|存量融资");
        items.put(YYZJ, "营运资金|生产经营|补充运营资金");
        items.put(XMJS, "项目建设");
        items.put(MJZJYT, "");//有息债务、营运资金、项目建设会填充到募集资金用途中
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }

}
